package com.ahsjdy.st.stdao.mapper;

import com.ahsjdy.st.stdao.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> listOrder(@Param("openid") String openid,
                          @Param("status") Integer status);

    int updateStatus(@Param("orderId") Integer orderId,
                     @Param("oldStatus") Integer oldStatus,                             @Param("newStatus") Integer newStatus);
}